package com.qq.service.impl;

import com.qq.dao.CarCityDao;
import com.qq.pojo.CarCity;
import com.qq.service.CarCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CarCityServiceImpl implements CarCityService {
    @Autowired(required = false)
    private CarCityDao carCityDao;
    //根据pid查询地址
    @Override
    public List<CarCity> selectCitiesByPid(int pid) {
        return carCityDao.findCitiesByPid(pid);
    }
    //根据id查询地址
    @Override
    public CarCity getCityById(int id) {
        return carCityDao.getCityById(id);
    }
}
